<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" layout:decorate="main"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head>
    <title>医生排班信息修改</title>
    <link th:href="@{/localcss/crmlist.css}" href="../static/localcss/crmadd.css" rel="stylesheet">
</head>
<body>
<div layout:fragment="content">
    <div class="">
        <div class="clearfix"></div>
        <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                    <div class="x_title">
                        <h2>修改排班信息 <i class="fa fa-user"></i></h2>
                        <div class="clearfix"></div>
                    </div>
                    <div class="x_content">
                        <div class="clearfix"></div>
                        <form class="form-horizontal form-label-left" th:action="@{/paiban/save}" action="/paiban/save"
                              method="post">
                            <input type="hidden" name="usrId" id="usrId" value="1" th:value="${paiban.doctorId}">
                            <div class="item form-group">
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <ul>
                                        <li>星期一
                                            <select name="one" id="one" class="form-control" required="required">
                                            <option th:selected="${paiban.one eq '有班'}">有班</option>
                                            <option th:selected="${paiban.one eq '无班'}">无班</option>
                                        </select>
                                        </li>星期二
                                        <li>
                                            <select name="two" id="two" class="form-control" required="required">
                                                <option th:selected="${paiban.two eq '有班'}">有班</option>
                                                <option th:selected="${paiban.two eq '无班'}">无班</option>
                                            </select>
                                        </li>星期三
                                        <li>
                                            <select name="three" id="three" class="form-control" required="required">
                                                <option th:selected="${paiban.three eq '有班'}">有班</option>
                                                <option th:selected="${paiban.three eq '无班'}">无班</option>
                                            </select>
                                        </li>星期四
                                        <li>
                                            <select name="four" id="four" class="form-control" required="required">
                                                <option th:selected="${paiban.four eq '有班'}">有班</option>
                                                <option th:selected="${paiban.four eq '无班'}">无班</option>
                                            </select>
                                        </li>星期五
                                        <li>
                                            <select name="five" id="five" class="form-control" required="required">
                                                <option th:selected="${paiban.five eq '有班'}">有班</option>
                                                <option th:selected="${paiban.five eq '无班'}">无班</option>
                                            </select>
                                        </li>星期六
                                        <li>
                                            <select name="six" id="six" class="form-control" required="required">
                                                <option th:selected="${paiban.six eq '有班'}">有班</option>
                                                <option th:selected="${paiban.six eq '无班'}">无班</option>
                                            </select>
                                        </li>星期日
                                        <li>
                                            <select name="seven" id="seven" class="form-control" required="required">
                                                <option th:selected="${paiban.seven eq '有班'}">有班</option>
                                                <option th:selected="${paiban.seven eq '无班'}">无班</option>
                                            </select>
                                        </li>
                                    </ul>

                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-6 col-md-offset-3">
                                    <button id="send" type="submit" class="btn btn-success">保存</button>
                                    <button type="button" class="btn btn-primary" id="back">返回</button>
                                    <br/><br/>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script layout:fragment="js">
    $(document).ready(function () {
        $("#back").on("click", function () {
            window.history.back();
        });
    });
</script>
</html>